package org.charles.zhifou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.charles.zhifou.model.dto.statistic.AppAnswerCountDTO;
import org.charles.zhifou.model.dto.statistic.AppAnswerResultCountDTO;
import org.charles.zhifou.model.entity.UserAnswer;

import java.util.List;

/**
* @author charles
* @description 针对表【user_answer(用户答题记录)】的数据库操作Service
* @createDate 2024-08-06 09:11:36
*/
public interface UserAnswerService extends IService<UserAnswer> {

    Long addUserAnswer(UserAnswer userAnswer);

    void doScore(UserAnswer userAnswer) throws Exception;

    boolean removeUserAnswerById(Long id);

    boolean updateUserAnswer(UserAnswer userAnswer);

    boolean editUserAnswer(UserAnswer userAnswer);

    List<AppAnswerCountDTO> doAppAnswerCount();

    List<AppAnswerResultCountDTO> doAppAnswerResultCount(Long appId);
}
